<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景图像</title>
    <style type="text/css">
        div{
            width: 400px;
            height: 150px;
            border: dotted 10px #ff0000;
            padding: 40px;
            margin-bottom: 10px;
        }
        #div1{
            background-color: #b4b4b4;
            background-image: url("../source/img/border-image.png"),url("../source/img/background-image-1.jpg");
            background-repeat: no-repeat;
            background-position: bottom 20px right 20px, top 0 left 0;
            background-origin: content-box;
            opacity: 0.5;
        }
        #div2{
            background-color: #b4b4b4;
            background-image: url("../source/img/border-image.png"),url("../source/img/background-image-1.jpg");
            background-clip: content-box;
        }
        #div3{
            background-color: #b4b4b4;
            background-image: url("../source/img/background-image-1.jpg");
            background-repeat:no-repeat ;
            background-size: cover;
        }
    </style>
</head>
<body>
<div id="div1">背景图像</div>
<div id="div2">背景图像</div>
<div id="div3">背景图像</div>
</body>
</html>